/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.sql.Date;
import java.sql.Time;

/**
 *
 * @author jc218934
 */
public class DateTime
{
    private final Date date;
    private final Time time;

    public DateTime(long timeInMilliseconds)
    {
        date = new Date(timeInMilliseconds);
        time = new Time(timeInMilliseconds);
    }

    public Time getTime()
    {
        return time;
    }

    public Date getDate()
    {
        return date;
    }
}
